#include "dialog.h"
#include <QApplication>
#include <QTextCodec>
#include <QStyleFactory>
#include <QDebug>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QStringList styles = QStyleFactory::keys();
    qDebug() << styles; // ("windowsvista", "Windows", "Fusion")

    QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
    QApplication::setStyle(QStyleFactory::create("Fusion"));

#if defined(Q_OS_WIN)
    qDebug() << "windows";
#elif defined(Q_OS_MACOS)
    qDebug() << "mac";
#elif defined(Q_OS_LINUX)
    qDebug() << "linux";
#endif

    Dialog w;
    w.show();

    return a.exec();
}
